home *** CD-ROM | disk | FTP | other *** search
- Path: dd.chalmers.se!news.chalmers.se!sunic!EU.net!howland.reston.ans.net!xlink.net!pfm.PFM-Mainz.DE!babylon!rbabel
- From: rbabel@babylon.pfm-mainz.de (Ralph Babel)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Why does c.o clear BSS? It's not needed!!
- Message-ID: <18733@babylon.pfm-mainz.de>
- Date: 27 Apr 1994 20:17:55 +0200
- References: <80012334@prox.stgt.sub.org> <1994Apr24.121656.9198@ousrvr.oulu.fi> <farrenCosBK0.JC1@netcom.com> <1994Apr25.132448.26840@ousrvr.oulu.fi>
- Lines: 16
-
- Lauri Aalto wrote:
-
- > I meant that the bss hunk clearing with AllocMem()'s CLEAR
- > bit set while allocating memory for the hunks is
- > undocumented.
-
- The clearing of BSS hunks is documented on page 357 of the
- Bantam manual. Yes, this was already documented prior to
- 2.0. No, it doesn't use MEMF_CLEAR. It never did.
-
- > That's why most of the C compilers clear the bss hunks in
- > a loop before actually using them.
-
- No. We were talking about BSS space "implied" at the end of
- a _data_ hunk the actual data block of which is shorter than
- indicated in the header block. (SLink's small-data model.)
-